home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / pc / Shout3Ddemo / Shout3d_runtime / codebase / models / animTests / linear_position_box.s3d < prev    next >
Text File  |  2000-05-30  |  1KB  |  63 lines

  1. DEF world-TIMER TimeSensor {
  2.     loop TRUE
  3.     cycleInterval 3.333
  4. }
  5. DEF Box01 Transform {
  6.     translation -100 0 100
  7.     children [
  8.         Shape {
  9.             appearance [
  10.                 MultiAppearance {
  11.                     material Material {
  12.                         diffuseColor 0.6039 0.6039 0.898
  13.                     }
  14.                 }
  15.             ]
  16.             geometry MultiMesh {
  17.                 coord Coordinate {
  18.                     point [
  19.                         -15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
  20.                     ]
  21.                 }
  22.                 coordIndex [
  23.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  24.                     2 0 4 -1 4 6 2 -1
  25.                 ]
  26.                 edgeVisibleIndex [
  27.                     1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1
  28.                     1 1 0 -1 1 1 0 -1
  29.                 ]
  30.                 smoothingIndex [
  31.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  32.                 ]
  33.                 appearanceIndex [
  34.                     1 1 0 0 4 4 3 3 5 5 2 2
  35.                 ]
  36.                 textureMappings [
  37.                 ]
  38.             }
  39.         }
  40.         DEF Box01-POS-INTERP PositionInterpolator {
  41.             key [
  42.                 0 0.5 1
  43.             ]
  44.             keyValue [
  45.                 -100 0 100 -100 0 -100 100 0 -100
  46.             ]
  47.         }
  48.         ROUTE world-TIMER.fraction_changed TO Box01-POS-INTERP.set_fraction
  49.         ROUTE Box01-POS-INTERP.value_changed TO Box01.set_translation
  50.     ]
  51. }
  52. DEF Camera01 Viewpoint{
  53.     position 2.983 113.4 362.3
  54.     orientation 0.9614 -0.2725 -0.03926 -0.2975
  55.     fieldOfView 0.6024
  56.     description "Camera01"
  57. }
  58. DEF Camera01.Target Transform {
  59.     translation -28.44 0 -21.85
  60.     children [
  61.     ]
  62. }
  63.